package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbPersonMapper;
import com.dongdongshop.pojo.TbPerson;
import com.dongdongshop.service.PersonService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class PersonServiceImpl implements PersonService {

    @Autowired
    private TbPersonMapper tbPersonMapper;

    @Override
    public TbPerson getInfo(String pname) {
        return tbPersonMapper.selectByName(pname);
    }
}
